//
// Created by champrin on 2022/6/27.
//

#ifndef UNTITLED_ARMOR_H
#define UNTITLED_ARMOR_H

#include <opencv2/opencv.hpp>

class Armor {
public:
    std::vector<cv::Point2f> pnt;
    cv::Point2f center;
    cv::Point2f p1;
    cv::Point2f p2;
    float height;
    float length;

    void Transform2P(cv::RotatedRect &r1, cv::RotatedRect &r2);

    void DrawRectangle(cv::Mat &img, const cv::Scalar &recColor);

};

#endif //UNTITLED_ARMOR_H
